
    <div id="main_box">
        <?php if($id=='contact') {?>
            <form action="/landing/success_contact" method="post" name="fr" onsubmit="return cyeucau();" id="myfrom">
                <input type="hidden" name="session_form" value="<?php echo $frmToken1;?>" >
                <div class="h"> Gửi yêu cầu liên hệ </div>
                <div class="b">
                    <table cellspacing="0" cellpadding="0" style="width: 100%; " class="style1">
                        <tbody><tr>                
                            <td style="height: 23px; width: 30%; background-color: #FFFFFF; text-align: left;">
                                <p style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px;">Họ tên: </p>
                            </td>
                            <td style="width: 50%; height: 23px; background-color: #FFFFFF; text-align: left;">
                                <p style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px;">
                                <input type="text" name="full_name" style="width: 130px" id="full_name_contact"></p>
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 23px; width: 30%; background-color: #FFFFFF; text-align: left;">
                                <p style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px;">Email:</p>
                            </td>
                            <td style="width: 50%; height: 23px; background-color: #FFFFFF; text-align: left;">
                                <p style="padding-top: 0px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px;">
                                <input type="text" name="email" id="email_contact">
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 23px; width: 30%; background-color: #FFFFFF; text-align: left;">
                                <p style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px;">Số Di Động:</p>
                            </td>
                            <td style="width: 50%; height: 23px; background-color: #FFFFFF; text-align: left;">
                                <p style="padding-top: 0px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px;">
                                <input type="text" name="phone" id="phone_contact">
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 23px; width: 30%; background-color: #FFFFFF; text-align: left;">
                                <p style="padding-top: 5px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px;">Nội dung:</p>
                            </td>
                            <td style="width: 50%; height: 23px; background-color: #FFFFFF; text-align: left;">
                                <p style="padding-top: 0px; padding-right: 10px; padding-bottom: 5px; padding-left: 10px;">
                                <textarea type="text" name="content" id="content_contact"></textarea>
                            </td>
                        </tr>
                        <tr>
                            <td style="padding-top: 0px; padding-bottom: 0px; text-align: center; background-color: #FFFFFF" colspan="2">
                                <strong><input type="submit" name="submit" value="Gửi Yêu Cầu"></strong>
                            </td>
                        </tr>
                    </tbody></table>
                </div>
                <div class="c"></div>
            </form>
        <?php }?>
        <div class="h"> <?php echo $news;?> </div>
        <div class="b" <?php if($id=='contact') echo 'style="text-align:center;"';?>>
	        <?php echo $info['content']; ?>
		</div>
     </div>
</div>
<script>
    function cyeucau(){
        var full_name = $("#full_name_contact").val();
        var email = $("#email_contact").val();
        var phone = $("#phone_contact").val();
        var content = $("#content_contact").val();
        
        var status = -1;
        if(full_name =='' || full_name.length >50 || full_name.length < 5) {
            alert("Bạn cần nhập đúng thông tin!");
            $("#full_name_contact").focus();
            status = -1;
            return false;
        } else {
            status = 1;
            
        }
        
        if(email =='') {
            alert("Bạn cần nhập đúng thông tin!");
            $("#email_contact").focus();
            status = -1
            return false;
        } else {
            status = 1;
        }
        if(phone ==''|| phone.length <9 || phone.length >11) {
            alert("Bạn cần nhập đúng thông tin!");
            $("#phone_contact").focus();
            status = -1;
            return false;
        } else {
            status = 1;
        }
        
        if(content ==''|| content.length <5 && phone.length >200) {
            alert("Bạn cần nhập đúng thông tin!");
            $("#content").focus();
            status = -1;
            return false;
        } else {
            status = 1;
        }
        if(status == 1) return true;
    }
</script>